package com.xunji.user.vo.rep;


import com.xunji.user.dto.MinioUploadDto;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@ApiModel("头像上传返回实体")
@Data
public class HeadImageUploadResponse {

    private String fileName;

    private String previewUrl;

    public static HeadImageUploadResponse getInstance(MinioUploadDto minioUploadDto){
        HeadImageUploadResponse headImageUploadResponse = new HeadImageUploadResponse();
        headImageUploadResponse.setFileName(minioUploadDto.getFileName());
        headImageUploadResponse.setPreviewUrl(minioUploadDto.getPreviewUrl());
        return headImageUploadResponse;
    }

}
